home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gigarom 1
/
Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso
/
FILES
/
DEV
/
C-H
/
Discipline2.0.2.sit
/
Discipline 2.0.2
/
Discipline Examples
/
unequalByte.c
< prev
next >
Wrap
C/C++ Source or Header
|
1991-04-09
|
1KB
|
41 lines
#include <Types.h>
pascal char *theTest (long *selector)
{
char one;
char another;
switch (selector[0])
{
case 0 :
/* return test name */
return ("unequalByte");
break;
case 1 : /*return test description , including test parameters in “” */
return ("“one,1,B” != “another,2,B” byte.");
break;
case 2 : /*do guts of test or make call to actual test proceduure */
one = (char) selector [1];
another = (char) selector [2];
if (one == another)
{ return ("Equal."); } /*in test return a string for the test*/
else /*failing or nil for test passes */
{ return (nil); };
break;
default :
return (nil);
break;
};
return (nil);
}
/*
make instructions
c unequalByte.c -r -b -t -sym off -mbg off -s {Default} -o unequalByte.c.o
link -mf -rt dsct=1044 -sg unequalByte="Main" -m "THETEST" ∂
-sym off ∂
"unequalByte.c.o" ∂
-o "Discipline Startup"
make sure the dsct number is unique and the segment name is the same as the test name
*/